package com.tsin.usercenter.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 
 * @TableName team
 */
@TableName(value ="team")
public class Team implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 队伍名
     */
    private String teamName;

    /**
     * 队伍描述
     */
    private String teamDescription;

    /**
     * 队伍最大容量
     */
    private Integer teamMaxnumber;

    /**
     * 
     */
    private Date teamExpiretime;

    /**
     * 0-公开 1-私有 2-加密
     */
    private Integer teamStatus;

    /**
     * 队伍加入密码
     */
    private String teamPassword;

    /**
     * 队长id
     */
    private Long userId;

    /**
     * create_time
     */
    private Date createTime;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * 1-no 0-ok
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 队伍名
     */
    public String getTeamName() {
        return teamName;
    }

    /**
     * 队伍名
     */
    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    /**
     * 队伍描述
     */
    public String getTeamDescription() {
        return teamDescription;
    }

    /**
     * 队伍描述
     */
    public void setTeamDescription(String teamDescription) {
        this.teamDescription = teamDescription;
    }

    /**
     * 队伍最大容量
     */
    public Integer getTeamMaxnumber() {
        return teamMaxnumber;
    }

    /**
     * 队伍最大容量
     */
    public void setTeamMaxnumber(Integer teamMaxnumber) {
        this.teamMaxnumber = teamMaxnumber;
    }

    /**
     * 
     */
    public Date getTeamExpiretime() {
        return teamExpiretime;
    }

    /**
     * 
     */
    public void setTeamExpiretime(Date teamExpiretime) {
        this.teamExpiretime = teamExpiretime;
    }

    /**
     * 0-公开 1-私有 2-加密
     */
    public Integer getTeamStatus() {
        return teamStatus;
    }

    /**
     * 0-公开 1-私有 2-加密
     */
    public void setTeamStatus(Integer teamStatus) {
        this.teamStatus = teamStatus;
    }

    /**
     * 队伍加入密码
     */
    public String getTeamPassword() {
        return teamPassword;
    }

    /**
     * 队伍加入密码
     */
    public void setTeamPassword(String teamPassword) {
        this.teamPassword = teamPassword;
    }

    /**
     * 队长id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 队长id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * create_time
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * update_time
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 1-no 0-ok
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 1-no 0-ok
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Team team = (Team) o;
        return id == team.id && Objects.equals(teamName, team.teamName) && Objects.equals(teamDescription, team.teamDescription) && Objects.equals(teamMaxnumber, team.teamMaxnumber) && Objects.equals(teamExpiretime, team.teamExpiretime) && Objects.equals(teamStatus, team.teamStatus) && Objects.equals(teamPassword, team.teamPassword) && Objects.equals(userId, team.userId) && Objects.equals(createTime, team.createTime) && Objects.equals(updateTime, team.updateTime) && Objects.equals(isDelete, team.isDelete);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, teamName, teamDescription, teamMaxnumber, teamExpiretime, teamStatus, teamPassword, userId, createTime, updateTime, isDelete);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", teamName=").append(teamName);
        sb.append(", teamDescription=").append(teamDescription);
        sb.append(", teamMaxnumber=").append(teamMaxnumber);
        sb.append(", teamExpiretime=").append(teamExpiretime);
        sb.append(", teamStatus=").append(teamStatus);
        sb.append(", teamPassword=").append(teamPassword);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}